package com.younion.common.base;

import com.younion.util.HttpClientUtils;





/**
 * @author  Devin.Hu
 * @date 2011-6-24
 * @version V1.0 
 * @description VIPSHOP接口实现基类
 */
public class BaseAPI {

	/**
	 * 执行doGet方法，发送请求
	 * @param url
	 * @return
	 * @throws Exception 
	 */
	
	protected String doGet(String url) throws Exception {
		HttpClientUtils client = new HttpClientUtils();
		System.out.println("url:"+url);
		return client.doGet(url);
	}
	
	protected String doGet(String url,String charset) throws Exception {
		HttpClientUtils client = new HttpClientUtils();
		
		return client.doGet(url,charset);
	}
}
